From 0e7d469f89afdf21807a8f2d64997a1f595f3d69 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 15 Sep 2025 18:50:42 -0400 Subject: [PATCH] bug --- doc/bugs/yt-dlp_mojibake.mdwn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/bugs/yt-dlp_mojibake.mdwn diff --git a/doc/bugs/yt-dlp_mojibake.mdwn b/doc/bugs/yt-dlp_mojibake.mdwn new file mode 100644 index 0000000000..e4133f4fdc --- /dev/null +++ b/doc/bugs/yt-dlp_mojibake.mdwn @@ -0,0 +1,22 @@ +git-annex importfeed from an AvE video failed: + + renamePath:rename '/home/joey/lib/big/.git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/ï¼ÂCorrectionï¼ hydraulic spool motor [HPajFNxnuN8].webm' to '../.git/annex/tmp/URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8': does not exist (No such file or directory) + +Here's the file list: + + joey@darkstar:~/lib/big>cat .git/annex/tmp/work.URL--yt\&chttps\&c%%www.youtube.com%watch\,63v\,61HPajFNxnuN8/git-annex-file-list-file + /home/joey/lib/big/.git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/*Correction* hydraulic spool motor [HPajFNxnuN8].webm + /home/joey/lib/big/.git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/*Correction* hydraulic spool motor [HPajFNxnuN8].webm + +And the video was written to the file: + ".git/annex/tmp/work.URL--yt&chttps&c%%www.youtube.com%watch,63v,61HPajFNxnuN8/*Correction* hydraulic spool motor [HPajFNxnuN8].webm" + +This only affects a git-annex built with OsPath, and only recently +(not a released version). + +Unfortunatly, it is a bug in file-io: + + +To fix it, git-annex will need to wrap file-io and call +`getLocaleEncoding >>= hSetEncoding h` on each opened Handle. Or depend on +a fixed version. --[[Joey]] -- 2.30.2